<template>
  <div class="pagebox">
    <HeadView v-if="!hideShowHeadFooter"></HeadView>
    <NuxtPage />
    <FootView v-if="!hideShowHeadFooter"></FootView>
  </div>
</template>

<script setup>
import { computed, onMounted } from 'vue';
import { useRoute } from 'vue-router';

// 获取当前路由
const route = useRoute();

// 计算属性，判断当前页面是否为 login 页面
const hideShowHeadFooter = computed(() => route.path === '/login');
</script>